package cn.zc.curriculum.service.controller.admin;



import cn.tools.core.base.R;

import cn.zc.curriculum.entity.VO.MenuAndQuestionVO;
import cn.zc.curriculum.service.service.MenuAndQuestionService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;


@Api(tags = "后台目录对应题接口")
@RestController
@RequestMapping("/curriculum")
public class AdminMenuAndQuestionController {

    @Resource
    private MenuAndQuestionService menuAndQuestionService;



    /**
     * 创建对应的关联题
     * @param menuAndQuestionVO
     * @return
     */
    @ApiOperation(value = "目录关联练习题,id就不用传了")
    @PostMapping("/admin/create/MenuAndQuestion")
    private R createMenuAndQuestion(@RequestBody MenuAndQuestionVO menuAndQuestionVO){
        menuAndQuestionService.createMenuAndQuestion(menuAndQuestionVO);
        return R.success();
    }






}
